package com.example._05mvcboot03.pojo.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class UserLoginDTO {
    @NotBlank(message = "用户名不能为空")
    @Size(min = 1,max = 20,message = "长度在1-20之内")
    private String username;
    @NotBlank(message = "密码不能为空")
    @Size(min = 10,max=500,message = "长度在10-500之间")
    private String password;
}
